<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import joomla controller library
jimport('joomla.application.component.controller');

JTable::addIncludePath(JPATH_COMPONENT . DS . 'tables');

// die allgemeinen Klassen registieren
JLoader::register('BeController',	JPATH_COMPONENT . DS . 'controller.php');
JLoader::register('BeModel',			JPATH_COMPONENT . DS . 'model.php');
JLoader::register('BeTable',			JPATH_COMPONENT . DS . 'table.php');

// Helper
JLoader::register('BeRouteHelper',	JPATH_COMPONENT . DS . 'helpers' . DS . 'route.php');

// Get an instance of the controller prefixed by BrowserEmpire
$controller	= JController::getInstance('Be');
$input			= JFactory::getApplication()->input;

// Perform the Request task
$controller->execute($input->getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
?>